using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.DALFactory;
using OgilvyOne.IDAL;
using OgilvyOne.Model;
using System.Collections;

namespace OgilvyOne.BLL
{
    public class RoleUser
    {
        // Methods
        public void DeleteByUserID(int userid)
        {
            OgilvyOne.DALFactory.RoleUser.Create().DeleteByUserID(userid);
        }

        public string getRoleByUserID(int userid)
        {
            return OgilvyOne.DALFactory.RoleUser.Create().getRoleByUserID(userid);
        }

        public IList getRoleUserList()
        {
            return OgilvyOne.DALFactory.RoleUser.Create().getRoleUserList();
        }

        public IList getRoleUserList(int userid)
        {
            return OgilvyOne.DALFactory.RoleUser.Create().getRoleUserList(userid);
        }

        public IList getUserListByUserID(int userid)
        {
            return OgilvyOne.DALFactory.RoleUser.Create().getRoleListByUserID(userid);
        }

        public void Insert(RoleUserInfo func)
        {
            OgilvyOne.DALFactory.RoleUser.Create().Insert(func);
        }

        public void Update(RoleUserInfo func)
        {
            OgilvyOne.DALFactory.RoleUser.Create().Update(func);
        }

    }
}
